<template>
  <m-ellipsis-tooltip
    v-if="!isEmpty(content)"
    v-bind="$attrs"
    :content="content"
  ></m-ellipsis-tooltip>
  <span v-else>--</span>
</template>

<script setup lang="ts">
import { MEllipsisTooltip } from '@/components/ellipsis-tooltip'
import { isEmpty } from '@/utils'
defineOptions({
  name: 'MTooltipBox'
})

defineProps<{
  content?: string
}>()
</script>
